<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <title>JSP - Hello World</title>
</head>
<body>

<%--
    //JSP就是一个Servlet
    //C:\Users\z1996\AppData\Local\JetBrains\IntelliJIdea2021.1\tomcat\cbc1adbb-1d27-411a-a19a-8664ee68106f\work\Catalina\localhost\demo4\org\apache\jsp

    //内置对象：
    HttpServletRequest request, HttpServletResponse response

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

--%>
<h3>当前在线人数：<%=application.getAttribute("onlineCount")%></h3>
<br/>
<h1><%= "Hello World!" %>
</h1>
<br/>
<a href="hello-servlet">Hello Servlet</a></br>
<a href="demo">Demo页面</a></br>
<a href="demo02">转发测试</a></br>
<a href="fileServlet">下载</a></br>
<a href="imageServlet">验证码</a></br>
<a href="redirectServlet">重定向</a></br>
<a href="cookieDemo">cookieDemo</a></br>

<%--<form action="${pageContext.request.contextPath}" method="post">--%>
<form action="loginServlet" method="post">
    用户名：<input type="text" name="username"></br>
    密码：<input type="password" name="password"></br>
    <input type="submit"></br>
</form>
</body>
</html>